package cn.community.system.service;

import cn.community.system.domain.Department;
import cn.community.system.query.DepartmentQuery;
import cn.community.system.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDepartmentService {
    void delete(Long id);
    void save(Department department);
    Department get(Long id);
    List<Department> listAll();
    void update(Department department);

    // 分页
    PageInfo query(QueryObject qo);
    PageInfo queryAsso(DepartmentQuery qo);

    Long findIdByName(String applicant);

    Department getByAssoId(Long id);

    Department listDeptByAssoId(Long id);

    void saveAsso(Department department);

    void updateAsso(Department department);

    Department getByAssoIdAndDeptname(Long assoId, String deptname);
}
